package com.tyk.bookstore.front.system.util;


import com.tyk.bookstore.front.system.model.dto.AreaTreeDto;
import com.tyk.bookstore.front.system.model.dto.CarouselDto;
import com.tyk.bookstore.front.system.model.vo.AreaVo;
import com.tyk.bookstore.front.system.model.vo.CarouselVo;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

import java.util.List;

@Mapper(componentModel = "spring")
public interface MapStructPlatform {
    @Mapping(target = "children", ignore = true)
    AreaVo toAreaVo(AreaTreeDto dto);

    List<CarouselVo> toCarouselVoList(List<CarouselDto> dtoList);
}
